package com.abc.springboot.pojo;

public class Student {
    private int id;
    private String name;
    private int age;
    private int classId;
    private String phonenumber;

    private String gender;

    public Student() {
    }

    public Student(int id, String name, int age, int classId, String phonenumber, String gender) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.classId = classId;
        this.phonenumber = phonenumber;
        this.gender = gender;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", classId=" + classId +
                ", phonenumber='" + phonenumber + '\'' +
                ", gender='" + gender + '\'' +
                '}';
    }
}
